package com.platform.service;

import com.platform.dao.ApiUserGroupPurchaseMapper;
import com.platform.entity.UserGroupPurchaseVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class ApiUserGroupPurchaseService {
    @Autowired
    private ApiUserGroupPurchaseMapper apiUserGroupPurchaseMapper;

    public void save(UserGroupPurchaseVo userGroupPurchaseVo){
        apiUserGroupPurchaseMapper.save(userGroupPurchaseVo);
    }

    public UserGroupPurchaseVo queryObject(Integer id) {
        return apiUserGroupPurchaseMapper.queryObject(id);
    }
    public void update(UserGroupPurchaseVo userGroupPurchaseVo){
        apiUserGroupPurchaseMapper.update(userGroupPurchaseVo);
    }
    public List<UserGroupPurchaseVo> queryList(Map<String,Object> map) {
        return apiUserGroupPurchaseMapper.queryList(map);
    }
    public List<UserGroupPurchaseVo> queryBySn(Map<String,Object> map) {
        return apiUserGroupPurchaseMapper.queryBySn(map);
    }

    public List<UserGroupPurchaseVo> queryMyGroupPurchase(Integer userId,Integer type) {
        return apiUserGroupPurchaseMapper.queryMyGroupPurchase(userId,type);
    }
}
